import 'package:flutter/material.dart';

import '../../helper/utils/util.dart';
import 'index.dart';

class SplashPage extends StatelessWidget {
  SplashPage({Key? key}) : super(key: key);
  final controller = Get.put(SplashLogic());

  @override
  Widget build(BuildContext context) {
    return GetBuilder<SplashLogic>(
      builder: (_) {
        return Scaffold(
          backgroundColor: Colors.white,
          body: Stack(
            children: [
              Image.network(
                  'https://pics2.baidu.com/feed/5fdf8db1cb134954cc073ab0060f3653d0094a92.jpeg@f_auto?token=a3d9d0e364c96d4644cf5e4a11d92a7c',
                  width: 10,
                  height: 10),
              loadImage(
                url: 'splash.png'.imgPath,
                width: 1.sw,
                height: 1.sh,
                fit: BoxFit.cover,
              )
            ],
          ),
        );
      },
    );
  }
}
